#include<iostream>
#include<string>
using namespace std;

class Solution {
public:
    bool isRobotBounded(string instructions) {
        int left=0,right=0,x=0,y=0;
        for(auto c:instructions)
        {
            if(c=='G'&&left%90==0)y--;
            else if(c=='G'&&left%45==0)x++;
            else if(c=='L')left+=45;
            else if(c=='R')right+=45;
        }
          
    }
};